<#include "/common/defaultEngine.html"/>
<@pageTheme mark="${config.optimize()?string('true', 'false')}">
<@header title="新增岗位信息" bodyClass="white-bg" libs=["bootstrapSelect"]/>
<div class="wrapper wrapper-content ibox-content">
<@f.form id="form-post-add" class="form-horizontal">
    <div class="form-group">
        <label class="col-sm-3 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "岗位编码"/>：</label>
        <div class="col-sm-8">
            <@f.input name="postCode" required=true/>
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-3 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "岗位名称"/>：</label>
        <div class="col-sm-8">
            <@f.input name="postName" required=true/>
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-3 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "显示顺序"/>：</label>
        <div class="col-sm-8">
            <@f.input name="postSort" required=true/>
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-3 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "岗位分类"/>：</label>
        <div class="col-sm-8">
            <@f.select name="postType" dictType="sys_post_type"/>
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-3 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "状态"/>：</label>
        <div class="col-sm-8">
            <@f.radio name="status" dictType="sys_status"/>
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-3 control-label"><@ctx.i18n text = "备注"/>：</label>
        <div class="col-sm-8">
            <@f.textarea name="remark"/>
        </div>
    </div>
</@f.form>
</div>
<@footer>
    <script type="text/javascript">
        var prefix = baseURL + "sys/post"
        $("#form-post-add").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if (opt.validate.form()) {
                opt.operate.save(prefix + "/add", $('#form-post-add').serialize());
            }
        }
</script>
</@footer>
</@pageTheme>